import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import AdminIndex from '@/components/AdminIndex'
import MyReceived from '@/components/MyReceived'
import Statistics from '@/components/Statistics'
import DetailedStatistics from '@/components/DetailedStatistics'
import MyCreated from '@/components/MyCreated'
import MyModels from '@/components/MyModels'
import NewQuestionnair from '@/components/NewQuestionnair'
import Answer from '@/components/Answer'
import UseModel from '@/components/UseModel'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/admin',
      name: 'AdminIndex',
      component: AdminIndex
    },
    {
      path: '/myReceived',
      name: 'MyReceived',
      component: MyReceived
    },
    {
      path: '/statistics',
      name: 'Statistics',
      component: Statistics
    },
    {
      path: '/detailedStatistics',
      name: 'DetailedStatistics',
      component: DetailedStatistics
    },
    {
      path: '/myCreated',
      name: 'MyCreated',
      component: MyCreated
    },
    {
      path: '/myModels',
      name: 'MyModels',
      component: MyModels
    },
    {
      path: '/newQuestionnair',
      name: 'NewQuestionnair',
      component: NewQuestionnair,
    },
    {
      path: '/useModel',
      name: 'useModel',
      component: UseModel
    },
    {
      path: '/answer',
      name: 'Answer',
      component: Answer
    }
  ]
})
